"""
这里主要使用;
    1. if/else if/else/endif
    2. for/endfor

"""
from flask import Flask,render_template

app=Flask(__name__)

@app.route('/')
def hello():
    my_list = [
        {
            "id": 1,
            "value": "我爱工作"
        },
        {
            "id": 2,
            "value": "工作使人快乐"
        },
        {
            "id": 3,
            "value": "沉迷于工作无法自拔"
        },
        {
            "id": 4,
            "value": "日渐消瘦"
        },
        {
            "id": 5,
            "value": "以梦为马，越骑越傻"
        }
    ]
    posts = ['asfaf sddghsgd','rheth','sdgerhery']
    return render_template('template04.html',my_list=my_list,posts=posts)

if __name__ == '__main__':
    app.run(debug=True)